dir=mypackage
n=hello
mkdir -p $dir
rm -rf ./$dir/*

mkdir -p ./$dir/$n
cd ./$dir/$n

# c源码
cat > hello.c <<EOF
#include <stdio.h>
int main(int argc, char* argv[])
{
     printf("Hello world!\n"); 
     return 0;
}
EOF

#文件
cat > Makefile <<EOF
OBJS=hello.o
CC=gcc -g

all:$(OBJS)
    $(CC) -o hello $(OBJS)

clean:
    rm -f *.o hello

install:
    echo "hello install"

.PHONY:all clean
EOF

cd ..

mv $n ${n}-1.0

tar zcvf ${n}_1.0.tar.gz $n-1.0

dh_make -e lihao@bytech.top -f ./${n}_1.0.tar.gz



